//
//  XMPicwordDetailView.h
//  XMJJ_zml
//
//  Created by 丁浩 on 2025/7/2.
//

#import "XMBaseView.h"
#import "XMPicwordDetailModel.h"

NS_ASSUME_NONNULL_BEGIN

@protocol XMPicwordDetailViewDelegate <NSObject>

- (void)commentPublishWithContent:(NSString *)commentStr
                        commentId:(NSString *)commentId
                     commentLevel:(NSString *)commentLevel; //发表评论
- (void)picwordLikeAction; //图文点赞
- (void)picwordAttentionWithUserId:(NSString *)userId
                       isAttention:(BOOL)isAttention; //关注
- (void)commentLikeWithCommentId:(NSString *)commentId; //评论点赞

- (void)refreshData;
- (void)loadMore;

@end

@interface XMPicwordDetailView : XMBaseView

@property (nonatomic, weak) id<XMPicwordDetailViewDelegate>delegate;

- (void)setContentWithDetailModel:(XMPicwordDetailModel *)detailModel;
- (void)setContentWithCommentModelArr:(NSArray *)commentModelArr
                             totalNum:(NSString *)totalNumStr
                                 page:(NSInteger)page;

- (void)loadSuccess;
- (void)picwordLikeSuccess; //图文点赞成功
- (void)attentionSuccess:(BOOL)isAttention; //关注/取消关注成功

@end

NS_ASSUME_NONNULL_END
